{template "header.html"}
<form action="" method="post" name="myform" id="myform">
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		{$menu}<span>|</span><a href="{SYS_HELP_URL}83.html" target="_blank"><em>{lang('help')}</em></a>
	</div>
	<div class="bk10"></div>
	<div class="table-list col-tab">
		<ul class="tabBut cu-li">
			<li class="on">{lang('361')}</li>
		</ul>
		<div class="contentList pad-10">
				<table width="100%" class="table_form">
				<tr>
					<th width="200">{lang('html-087')}： </th>
					<td>{$SITE[$sid]['SITE_NAME']}</td>
                </tr>
				<tr>
					<th width="200">{lang('html-097')}： </th>
					<td>
					<select name="data[theme]">
                    <option value="default"> -- </option>
                    {loop $theme $t}
                    <option{if $t==$data['site'][$sid]['theme']} selected=""{/if} value="{$t}">{$t}</option>
                    {/loop}
                    </select>
					<div class="onShow">{dr_lang('html-619', $data.dirname)}</div>
					</td>
				</tr>
				<tr>
					<th>{lang('html-099')}： </th>
					<td>
					<select name="data[template]">
                    <option value="default"> -- </option>
                    {loop $template_path $t}
                    <option{if $t==$data['site'][$sid]['template']} selected=""{/if} value="{$t}">{$t}</option>
                    {/loop}
                    </select>
					<div class="onShow">{dr_lang('html-620', $data.dirname)}</div>
					</td>
				</tr>
				<tr>
					<th>{lang('html-621')}： </th>
					<td>
                    <input type="radio" name="data[html]" value="1" {if $data['site'][$sid]['html']}checked{/if} />&nbsp;<label>{lang('open')}&nbsp;&nbsp;&nbsp;&nbsp;</label>
                    <input type="radio" name="data[html]" value="0" {if !$data['site'][$sid]['html']}checked{/if} />&nbsp;<label>{lang('close')}</label>
					{if $sid>1}<div class="onShow">{lang('html-622')}</div>{/if}
                    </td>
				</tr>
				<tr>
					<th>{lang('html-155')}： </th>
					<td>
                    <input class="input-text" type="text" name="data[domain]" value="{$data['site'][$sid]['domain']}" size="30" />
                    {if $data['site'][$sid]['domain']}
                        {if $data['site'][$sid]['domain'] == SITE_DOMAIN}
                        <div class="onError">{dr_lang('html-730', $data['site'][$sid]['domain'])}</div>
                        {else}
                        <script>
                            $.get("{dr_url('home/domain', array('domain' => $data['site'][$sid]['domain']))}", function(data){
                                if (data) {
                                    $("#dr_domian_{$sid}").html(data);
                                } else {
                                    $("#dr_domian_{$sid}").hide();
                                }
                            });
                        </script>
                        <div id="dr_domian_{$sid}" class="onError"></div>
                        {/if}
                    {else}
                        <div class="onShow">{lang('html-090')}</div>
                    {/if}
                    </td>
				</tr>
				<tr>
					<th style="color: blue">{lang('html-623')}： </th>
					<td style="color: blue">{FCPATH}{$data.dirname}/</td>
				</tr>
				{if $sid > 1}
				<tr class="dr_site_{$sid}" {if !$data['site'][$sid]['use']}style="display:none"{/if}>
					<th style="color: blue">{lang('html-624')}： </th>
					<td style="color: blue">{FCPATH}{$data.dirname}/html/{$sid}/</td>
				</tr>
				{/if}
                <tr>
                    <th> </th>
                    <td><input value="{lang('submit')}" type="submit" name="submit" class="button" onclick="$('#dr_action').val('back')" />
                    </td>
                </tr>
				</table>

	</div>
</div>
</form>
{template "footer.html"}